package com.lvyq.javaprint.service;


import com.lvyq.javaprint.model.PrintData;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.InputStream;
import java.net.URL;

/**
 * @author lvyq 打印服务
 * @version 1.0
 * Create by 2024-08-06 14:46
 */
public interface PrintService {

    //文本打印
    void print(String text, PrintData data);

    //根据流打印
    @Deprecated
    void print(InputStream inputStream,PrintData data);

    //根据流打印-blob
    void print(MultipartFile multipartFile, PrintData data);

    //根据本地文件打印
    void print(File file, PrintData data);

    //根据网络地址打印
    void print(URL url, PrintData data);
}
